package com.ymh.spring.learn.aop.service;

import java.util.List;

public class BlankDiscList implements CompactDisc {

	private String title;
	private String artist;
	private List<String> tracks;

	public BlankDiscList() {
		super();
	}

	public BlankDiscList(String title, String artist, List<String> tracks) {
		this.title = title;
		this.artist = artist;
		this.tracks = tracks;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getArtist() {
		return artist;
	}

	public void setArtist(String artist) {
		this.artist = artist;
	}

	public List<String> getTracks() {
		return tracks;
	}

	public void setTracks(List<String> tracks) {
		this.tracks = tracks;
	}

	public void play(int num) {
		System.out.println("Playing " + title + " by " + artist + ":" + num);
		for (String track : tracks) {
			System.out.println("-Track: " + track);
		}
	}
}
